<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style>
<!--
.searchContent td label{
width:50px;
}
-->
</style>
<%--dwz分页查询 隐藏传值表单  begin --%>
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="${currentPage }" /> 
	<input type="hidden" name="numPerPage" value="${numPerPage}" /> 
	<input type="hidden" name="orderField" value="${param.orderField}" /> 
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" />
</form>
<%--dwz分页查询 隐藏传值表单  end --%>
<%--页头 检索条件区域 begin --%>
<div class="pageHeader">
<form rel="pagerForm" onsubmit="return navTabSearch(this);"	action="stock_stockDevOutList.action" method="post">
	<div class="searchBar nowrap">
	<p>
				<label>审核状态：</label>
				<select class="combox" name="outCheck">
					<option value="">---所有状态---</option>
					<option ${outCheck eq '0'?"selected":""} value="0">未审核</option>
					<option ${outCheck eq '1'?"selected":""} value="1">已审核</option>
					<option ${outCheck eq '2'?"selected":""} value="2">驳回</option>
				</select>
			</p>
			<p>
				<label>出库类型：</label>
				<select class="combox" name="outType">
					<option value="">---所有状态---</option>
					<option ${outType eq '1'?"selected":""} value="1">领用</option>
					<option ${outType eq '2'?"selected":""} value="2">报损</option>
				</select>
			</p>
			<p><label>申请起始日期</label>
					<input type="text" name="startDate"
							id="in_startDate" value="${startDate }" class="date"
							dateFmt="yyyy-MM-dd HH:mm" readonly="true" />
				</p>
				<p><label>申请结束日期</label>
                    <input type="text" name="endDate"
							id="in_endDate" value="${endDate }" class="date"
							dateFmt="yyyy-MM-dd HH:mm" readonly="true" />
				</p>
			<p><label>审核起始日期</label>
					<input type="text" name="check_startDate"
							id="check_startDate" value="${check_startDate }" class="date"
							dateFmt="yyyy-MM-dd HH:mm" readonly="true" />
				</p>
				<p><label>审核结束日期</label>
                    <input type="text" name="check_endDate"
							id="check_endDate" value="${check_endDate }" class="date"
							dateFmt="yyyy-MM-dd HH:mm" readonly="true" />
				</p>
		<div class="subBar">
				<ul>
					<li><div class="buttonActive">
										<div class="buttonContent">
											<button  type="submit">检索</button>
										</div>
					</div></li>
				</ul>
			</div>
	</div>
	</form>
</div>
<%--页头 检索条件区域 end --%>

<%--内容展示区域 begin --%>
<div class="pageContent">
	<%-- 工具栏  begin --%>
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="stock_checkDevOut.action?outBillcode={user_id}"  target="ajaxTodo"   title="确实要审核吗?" ><span>审核</span></a></li>
			<li class="line">line</li>
			<li><a class="delete" href="stock_nocheckout.action?outBillcode={user_id}"  target="ajaxTodo"   title="确实要驳回吗?">	<span>驳回</span></a></li>
			<li class="line">line</li>
			<li><a class="look" href="stock_checkDevOutList.action?outBillcode={user_id}" target="dialog" mask="true" rel="insideUser_show"  warn="请选择一个单据" title="查看单据信息"><span>查看</span>	</a></li>
			<li class="line">line</li>
		</ul>
	</div>
						
	<%-- 分页table列表 begin --%>
	<table class="table" width="100%" layoutH="114">
		<thead>
			<tr style="position: relative;">
							<th>序号</th>
							<th>出库单号</th>
							<th>设备出库类型</th>
							<th>出库申请时间</th>
							<th>出库申请人</th>
							<th>是否审核</th>
							<th>审核人</th>
							<th>审核时间</th>
							<th>备注</th>
				<%--
				<th width="">操作</th>
				 --%>
			</tr>
		</thead>
		<tbody id="cwfsList">
			<c:forEach items="${recordList}" var="devout" varStatus="status">
			<tr target="user_id" rel="${devout.outBillcode }">
				<td>${(status.index+1) + (currentPage-1) * numPerPage}
				</td>
				<td>${devout.outBillcode }</td>
				<td>
				<c:choose>  
				  <c:when test="${devout.outType==1}" >
 			  <label>领用</label>
  				 </c:when>  
  				 <c:otherwise>  
  				  <label>报损</label> 
  				 </c:otherwise>  
				</c:choose> 
				</td>
				<td>
				<fmt:parseDate value="${devout.outDate}" var="inTime" pattern="yyyyMMddHHmm"/>  
					<fmt:formatDate value="${inTime}" pattern="yyyy-MM-dd HH:mm" /> 
				</td>
				<td>${devout.inputer }</td>
				 <td>
			<c:choose>  
 			  <c:when test="${devout.outCheck==0}" >
 			  <label>未审核</label>
  				 </c:when>  
  				 <c:when test="${devout.outCheck==2}" >
 			  <label style="color: red">驳回</label>
  				 </c:when>  
  				 <c:otherwise>  
  				  <label style="color: green">已审核</label> 
  				 </c:otherwise>  
				</c:choose> 
				 </td>
				 <td>
				${devout.checker }
				</td>
				<td>
				<fmt:parseDate value="${devout.chkDate}" var="inTime" pattern="yyyyMMddHHmm"/>  
					<fmt:formatDate value="${inTime}" pattern="yyyy-MM-dd HH:mm" /> 
				</td>
				<td>
				${devout.describ }
				</td>
			
			</tr>
			</c:forEach>
			
		</tbody>
		
	</table>
		
	<%-- 分页table列表 end --%>
	
	<%--分页信息区 begin--%>
	<%@ include file="/WEB-INF/jsp/public/panelBar.jsp"%>	
	<%--分页信息区 end--%>
</div>